Optimal. Leaf size=91 \[ \frac {1}{3} i c d x^3 \left (a+b \tan ^{-1}(c x)\right )+\frac {1}{2} d x^2 \left (a+b \tan ^{-1}(c x)\right )+\frac {i b d \log \left (c^2 x^2+1\right )}{6 c^2}+\frac {b d \tan ^{-1}(c x)}{2 c^2}-\frac {b d x}{2 c}-\frac {1}{6} i b d x^2 \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.08, antiderivative size = 91, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 7, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.368, Rules used = {43, 4872, 12, 801, 635, 203, 260} \[ \frac {1}{3} i c d x^3 \left (a+b \tan ^{-1}(c x)\right )+\frac {1}{2} d x^2 \left (a+b \tan ^{-1}(c x)\right )+\frac {i b d \log \left (c^2 x^2+1\right )}{6 c^2}+\frac {b d \tan ^{-1}(c x)}{2 c^2}-\frac {b d x}{2 c}-\frac {1}{6} i b d x^2 \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 43
Rule 203
Rule 260
Rule 635
Rule 801
Rule 4872
Rubi steps
\begin {align*} \int x (d+i c d x) \left (a+b \tan ^{-1}(c x)\right ) \, dx &=\frac {1}{2} d x^2 \left (a+b \tan ^{-1}(c x)\right )+\frac {1}{3} i c d x^3 \left (a+b \tan ^{-1}(c x)\right )-(b c) \int \frac {d x^2 (3+2 i c x)}{6+6 c^2 x^2} \, dx\\ &=\frac {1}{2} d x^2 \left (a+b \tan ^{-1}(c x)\right )+\frac {1}{3} i c d x^3 \left (a+b \tan ^{-1}(c x)\right )-(b c d) \int \frac {x^2 (3+2 i c x)}{6+6 c^2 x^2} \, dx\\ &=\frac {1}{2} d x^2 \left (a+b \tan ^{-1}(c x)\right )+\frac {1}{3} i c d x^3 \left (a+b \tan ^{-1}(c x)\right )-(b c d) \int \left (\frac {1}{2 c^2}+\frac {i x}{3 c}+\frac {i (3 i-2 c x)}{c^2 \left (6+6 c^2 x^2\right )}\right ) \, dx\\ &=-\frac {b d x}{2 c}-\frac {1}{6} i b d x^2+\frac {1}{2} d x^2 \left (a+b \tan ^{-1}(c x)\right )+\frac {1}{3} i c d x^3 \left (a+b \tan ^{-1}(c x)\right )-\frac {(i b d) \int \frac {3 i-2 c x}{6+6 c^2 x^2} \, dx}{c}\\ &=-\frac {b d x}{2 c}-\frac {1}{6} i b d x^2+\frac {1}{2} d x^2 \left (a+b \tan ^{-1}(c x)\right )+\frac {1}{3} i c d x^3 \left (a+b \tan ^{-1}(c x)\right )+(2 i b d) \int \frac {x}{6+6 c^2 x^2} \, dx+\frac {(3 b d) \int \frac {1}{6+6 c^2 x^2} \, dx}{c}\\ &=-\frac {b d x}{2 c}-\frac {1}{6} i b d x^2+\frac {b d \tan ^{-1}(c x)}{2 c^2}+\frac {1}{2} d x^2 \left (a+b \tan ^{-1}(c x)\right )+\frac {1}{3} i c d x^3 \left (a+b \tan ^{-1}(c x)\right )+\frac {i b d \log \left (1+c^2 x^2\right )}{6 c^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.05, size = 76, normalized size = 0.84 \[ \frac {d \left (c x (a c x (3+2 i c x)+b (-3-i c x))+i b \log \left (c^2 x^2+1\right )+b \left (2 i c^3 x^3+3 c^2 x^2+3\right ) \tan ^{-1}(c x)\right )}{6 c^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.61, size = 104, normalized size = 1.14 \[ \frac {4 i \, a c^{3} d x^{3} + 2 \, {\left (3 \, a - i \, b\right )} c^{2} d x^{2} - 6 \, b c d x + 5 i \, b d \log \left (\frac {c x + i}{c}\right ) - i \, b d \log \left (\frac {c x - i}{c}\right ) - {\left (2 \, b c^{3} d x^{3} - 3 i \, b c^{2} d x^{2}\right )} \log \left (-\frac {c x + i}{c x - i}\right )}{12 \, c^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \mathit {sage}_{0} x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.03, size = 87, normalized size = 0.96 \[ \frac {i c d a \,x^{3}}{3}+\frac {d a \,x^{2}}{2}+\frac {i c d b \arctan \left (c x \right ) x^{3}}{3}+\frac {d b \arctan \left (c x \right ) x^{2}}{2}-\frac {i b d \,x^{2}}{6}-\frac {b d x}{2 c}+\frac {i b d \ln \left (c^{2} x^{2}+1\right )}{6 c^{2}}+\frac {b d \arctan \left (c x \right )}{2 c^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.41, size = 88, normalized size = 0.97 \[ \frac {1}{3} i \, a c d x^{3} + \frac {1}{6} i \, {\left (2 \, x^{3} \arctan \left (c x\right ) - c {\left (\frac {x^{2}}{c^{2}} - \frac {\log \left (c^{2} x^{2} + 1\right )}{c^{4}}\right )}\right )} b c d + \frac {1}{2} \, a d x^{2} + \frac {1}{2} \, {\left (x^{2} \arctan \left (c x\right ) - c {\left (\frac {x}{c^{2}} - \frac {\arctan \left (c x\right )}{c^{3}}\right )}\right )} b d \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.38, size = 87, normalized size = 0.96 \[ \frac {d\,\left (3\,a\,x^2+3\,b\,x^2\,\mathrm {atan}\left (c\,x\right )-b\,x^2\,1{}\mathrm {i}\right )}{6}+\frac {\frac {d\,\left (3\,b\,\mathrm {atan}\left (c\,x\right )+b\,\ln \left (c^2\,x^2+1\right )\,1{}\mathrm {i}\right )}{6}-\frac {b\,c\,d\,x}{2}}{c^2}+\frac {c\,d\,\left (a\,x^3\,2{}\mathrm {i}+b\,x^3\,\mathrm {atan}\left (c\,x\right )\,2{}\mathrm {i}\right )}{6} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 2.89, size = 158, normalized size = 1.74 \[ \frac {i a c d x^{3}}{3} - \frac {b d x}{2 c} + \frac {b d \left (- \frac {i \log {\left (9 b c d x - 9 i b d \right )}}{12} + \frac {7 i \log {\left (9 b c d x + 9 i b d \right )}}{24}\right )}{c^{2}} + x^{2} \left (\frac {a d}{2} - \frac {i b d}{6}\right ) + \left (\frac {b c d x^{3}}{6} - \frac {i b d x^{2}}{4}\right ) \log {\left (i c x + 1 \right )} - \frac {\left (4 b c^{3} d x^{3} - 6 i b c^{2} d x^{2} - 3 i b d\right ) \log {\left (- i c x + 1 \right )}}{24 c^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________